package com.chh.pddomain.user;


import com.chh.config.exception.PdException;
import lombok.Getter;

import java.util.Objects;


@Getter
public class UserName {
    /**
     * 账号
     */
    private String username;

    public UserName(String username) {
        if (Objects.isNull(username)){
            throw new PdException("账号不能为空");
        }
        this.username = username;
    }
}
